package FourHomeworkDesign.Facade;

/**
 * @author 北巷_东坡
 * @date 2022/11/13 16:53
 * @computer 10741
 */
public class Mainframe206 {
    private CPU206 cpu206;
    private HardDisk206 hardDisk206;
    private Memory206 memory206;
    private OS206 os206;

    public Mainframe206(){
        cpu206 = new CPU206();
        hardDisk206 =new HardDisk206();
        memory206 = new Memory206();
        os206 = new OS206();
    }

    public void on(){
        cpu206.run();
        hardDisk206.read();
        memory206.check();
        os206.load();
    }

    public void off(){
        System.out.println("计算机关闭");
    }
}
